package com.murray.assignment.service.impl;

import com.murray.assignment.mapper.AddressMapper;
import com.murray.assignment.pojo.Address;
import com.murray.assignment.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/13
 * @Time 8:12
 */
@Service
public class AddressServiceImpl implements AddressService {

    @Autowired
    AddressMapper addressMapper;

    @Override
    public List<Address> findAddress(Integer userId) {
        return addressMapper.selectAddress(userId);
    }
}
